package com.cloudfun.campusshare.common.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

/**
 * @author wangxiyuan
 * @description
 * @createDate 2021/5/18 18:56
 **/
@Data
@ApiModel(value = "下拉选详情")
public class SelectInfoVo {
    @ApiModelProperty(value = "下拉选文本")
    private String text;

    @ApiModelProperty(value = "下拉选值")
    private String value;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SelectInfoVo that = (SelectInfoVo) o;
        return Objects.equals(text, that.text) && Objects.equals(value, that.value);
    }

    @Override
    public int hashCode() {
        return Objects.hash(text, value);
    }
}
